devicesLastScreen = {}


def updateDeviceLastScreen(dName, newPicPath):
    if not dName in devicesLastScreen.keys():
        oldP = newPicPath
    else:
        oldP = devicesLastScreen[dName]
    devicesLastScreen.update({dName: newPicPath})
    # print(oldP)
    return oldP


devicesIP = {
    '001': '192.168.1.38',
    '002': '192.168.1.27',
    '003': '192.168.1.254',
    '004': '192.168.1.3',
    '005': '192.168.1.4',
    '006': '192.168.1.9',
    '007': '192.168.1.10',
    '008': '192.168.1.18',
    '009': '192.168.1.15',
    '010': '192.168.1.16',
    '011': '192.168.1.14',
    '012': '192.168.1.11',
    '013': '192.168.1.17',
    '014': '192.168.1.7',
    '015': '192.168.1.5',
    '016': '192.168.1.8',
    '017': '192.168.1.28',
    '018': '192.168.1.12',
    '019': '192.168.1.6',
}

devicesID = {
    '001': 'b04f991a',
    '002': 'aa22a023',
    '003': '25abcba8',
    '004': '502925a1',
    '005': '2b854268',
    '006': 'd3e98d04',
    '007': '3c2890b8',
    '008': '18b2afbc',
    '009': '9f2508c1',
    '010': '61606e32',
    '011': '3a49be81',
    '012': '3f4bbed2',
    '013': '26ca97ae',
    '014': '50e6c182',
    '015': '1d535019',
    '016': '406b984b',
    '017': 'f8609940',
    '018': '5e687932',
    '019': '16198032',
}
